package com.itheima.service.system;

import com.github.pagehelper.PageInfo;
import com.itheima.domain.system.Role;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.type.JdbcType;

import java.util.List;
import java.util.Map;

public interface RoleService {
    PageInfo<Role> queryPage(Integer pageNum, Integer pageSize) throws Exception;

    List<Role> findAll() throws Exception;

    Role findById(String roleId) throws Exception;

    void save(Role role) throws Exception;

    void update(Role role)throws Exception;

    void deleteById(String... roleIds)throws Exception;

    List<Map> findRolesByUserId(String userId)throws Exception;

    /**更新用户对应的模块权限*/
    void updateAuthor(String roleId,String... moduleIds)throws Exception;

    void clean();
}
